<h1>Listing commentaries</h1>

<table>
  <tr>
    <th>Id</td>
    <th>Cmt</th>
    <th>Rate</th>
    <th>Reservation</th>
    <th>User</th>
    <th>UserName</th>
    <th>Local</th>
    <th>Restaurant</th>
    <th>Status</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @commentaries.each do |commentary| %>
  <tr>
    <td><%= commentary.id %></td>
    <td><%= commentary.cmt %></td>
    <td><%= commentary.rate %></td>
    <td><%= commentary.reservation_id %></td>
    <td><%= commentary.user_id %></td>
    <td><%= commentary.usrname %></td>
    <td><%= commentary.local_id %></td>
    <td><%= commentary.restaurant_id %></td>
    <td><%= commentary.status %></td>
    <td><%= link_to 'Show', commentary %></td>
    <td><%= link_to 'Edit', edit_commentary_path(commentary) %></td>
    <td><%= link_to 'Destroy', commentary, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Commentary', new_commentary_path %>
